package com.apestech.framework.xml.sql;

/**
 * SQL解析XML里的常量记录
 *
 * @author hup
 * @create 2018-04-28-9:49
 */
public class SqlNodeVar {

    public enum SqlType {
        SQL(0), XML(1), XML_SQL(2);

        int value;

        SqlType(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

    private static String LISTVAR="#";
    private static String WHERE_STR="@WHERE@";
    private static String PARAM_VAR="#";
    private static String VALUE_VAR="$";

    private static String DATA_SYSDATE="SYSDATE";
    private static String DATA_SYSDATETIME="SYSDATETIME";
    private static String INNER_VALUE="INNER_VALUE";
    private static String DEFAULT_DATETIME="yyyy-m-d hh:mm:ss";
    private static String DEFAULT_DATE="yyyy-m-d";

    private static long MAX_COUNT=500000;  //10000000
    private static long MAX_XLS_COUNT=100000;
    private static String XLS_DOWN_SERVER="tomcat";

    public static String getLISTVAR() {
        return LISTVAR;
    }

    public static void setLISTVAR(String LISTVAR) {
        SqlNodeVar.LISTVAR = LISTVAR;
    }

    public static String getWhereStr() {
        return WHERE_STR;
    }

    public static void setWhereStr(String whereStr) {
        WHERE_STR = whereStr;
    }

    public static String getParamVar() {
        return PARAM_VAR;
    }

    public static void setParamVar(String paramVar) {
        PARAM_VAR = paramVar;
    }

    public static String getValueVar() {
        return VALUE_VAR;
    }

    public static void setValueVar(String valueVar) {
        VALUE_VAR = valueVar;
    }

    public static String getDataSysdate() {
        return DATA_SYSDATE;
    }

    public static void setDataSysdate(String dataSysdate) {
        DATA_SYSDATE = dataSysdate;
    }

    public static String getDataSysdatetime() {
        return DATA_SYSDATETIME;
    }

    public static void setDataSysdatetime(String dataSysdatetime) {
        DATA_SYSDATETIME = dataSysdatetime;
    }

    public static String getInnerValue() {
        return INNER_VALUE;
    }

    public static void setInnerValue(String innerValue) {
        INNER_VALUE = innerValue;
    }

    public static String getDefaultDatetime() {
        return DEFAULT_DATETIME;
    }

    public static void setDefaultDatetime(String defaultDatetime) {
        DEFAULT_DATETIME = defaultDatetime;
    }

    public static String getDefaultDate() {
        return DEFAULT_DATE;
    }

    public static void setDefaultDate(String defaultDate) {
        DEFAULT_DATE = defaultDate;
    }

    public static long getMaxCount() {
        return MAX_COUNT;
    }

    public static void setMaxCount(long maxCount) {
        MAX_COUNT = maxCount;
    }

    public static long getMaxXlsCount() {
        return MAX_XLS_COUNT;
    }

    public static void setMaxXlsCount(long maxXlsCount) {
        MAX_XLS_COUNT = maxXlsCount;
    }

    public static String getXlsDownServer() {
        return XLS_DOWN_SERVER;
    }

    public static void setXlsDownServer(String xlsDownServer) {
        XLS_DOWN_SERVER = xlsDownServer;
    }

}
